/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2023-03-24
 * Time: 12:30
 */
//有三个线程，分别只能打印A，B和C
//
//
//
//要求按顺序打印ABC，打印10次
//
//
//
//输出示例：
//
//ABC
//
//ABC
//
//ABC
//
//ABC
//
//ABC
//
//ABC
//
//ABC
//
//ABC
//
//ABC
//
//ABC
public class ThreadDemo1 {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            Thread t1 = new Thread(() -> {
                System.out.println("A");
            });
            Thread t2 = new Thread(() -> {
                System.out.println("B");
            });
            Thread t3 = new Thread(() -> {
                System.out.println("C");
            });
            t1.start();
            t2.start();
            t3.start();


        }
    }
}